package com.usian.admin.fegin;

import com.usian.model.article.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("leadnews-article")
public interface ArtivleFegin {
    @RequestMapping("/article/api/add")
    public com.usian.model.article.pojos.ApArticle add(@RequestBody com.usian.model.article.pojos.ApArticle apArticle);
    @RequestMapping("/article/api/findAllAr/{id}")
    ApAuthor findAllAr(@PathVariable(value = "id") Integer id);
    @RequestMapping("/article/api/addArticleConfig")
    ResponseResult addArticleConfig(@RequestBody com.usian.model.article.pojos.ApArticleConfig apArticleConfig);
    @RequestMapping("/article/api/addApArticleConfig")
    ResponseResult addApArticleConfig(@RequestBody com.usian.model.article.pojos.ApArticleContent apArticleConfig);
    @RequestMapping("/article/api/UpdateArticle_Config")
    public void UpdateArticle_Config(@RequestParam("enable") String enable,@RequestParam("articel") String articel);

    @GetMapping("/article/api/findAllArticle")
    public List<com.usian.model.article.pojos.ApArticle> findAllArticle();

    @GetMapping("/article/api/findByIdArticleContent/{id}")
    public com.usian.model.article.pojos.ApArticleContent findByIdArticleContent(@PathVariable("id") Long id);
}
